package cn.zsc.netdisk.pojo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import lombok.Data;

import java.time.LocalDate;

/**
 * 用户信息
 * @author ccying
 * @date 2021/2/4
 */
@Data
public class User {
    /**
     * 账号ID
     * */
    private String uid;
    /**
     * 手机号码
     * */
    private String mobile;
    /**
     * 邮箱
     * */
    private String email;
    /**
     * 密码
     * */
    private String password;
    /**
     * 创建时间
     * */
    @JsonDeserialize(using = LocalDateDeserializer.class)
    @JsonSerialize(using = LocalDateSerializer.class)
    private LocalDate created;
}
